package com.campus.help.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 劳务申请记录实体类
 *
 * @author campus-help
 * @since 2025-09-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("labor_application")
public class LaborApplication extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 劳务ID
     */
    @TableField("labor_id")
    private Long laborId;

    /**
     * 申请者ID
     */
    @TableField("applicant_id")
    private Long applicantId;

    /**
     * 申请时间
     */
    @TableField("application_time")
    private LocalDateTime applicationTime;

    /**
     * 申请状态（pending：待审核，accepted：已接受，rejected：已拒绝，completed：已完成）
     */
    @TableField("status")
    private String status;

    /**
     * 申请说明
     */
    @TableField("application_note")
    private String applicationNote;

    /**
     * 审核时间
     */
    @TableField("review_time")
    private LocalDateTime reviewTime;

    /**
     * 审核说明
     */
    @TableField("review_note")
    private String reviewNote;

    /**
     * 完成时间
     */
    @TableField("complete_time")
    private LocalDateTime completeTime;

    /**
     * 完成说明
     */
    @TableField("complete_note")
    private String completeNote;
}
